home *** CD-ROM | disk | FTP | other *** search
/ Libris Britannia 4 / science library(b).zip / science library(b) / DTP / DTP_TEX / 2848F.ZIP / INPUTS2.ARC / ART12.DOC < prev    next >
Text File  |  1987-12-15  |  16KB  |  370 lines

  1. % ARTICLE DOCUMENT STYLE -- Released 9 June 1987
  2. %    for LaTeX version 2.09
  3. % Copyright (C) 1987 by Leslie Lamport
  4.  
  5. %  ****************************************
  6. %  *               FONTS                  *
  7. %  ****************************************
  8. %
  9.  
  10. \lineskip 1pt            % \lineskip is 1pt for all font sizes.
  11. \normallineskip 1pt
  12. \def\baselinestretch{1}
  13.  
  14. % Each size-changing command \SIZE executes the command
  15. %        \@setsize\SIZE{BASELINESKIP}\FONTSIZE\@FONTSIZE
  16. % where:
  17. %   BASELINESKIP = Normal value of \baselineskip for that size.  (Actual 
  18. %                  value will be \baselinestretch * BASELINESKIP.)
  19. %
  20. %  \FONTSIZE     = Name of font-size command.  The currently available
  21. %                  (preloaded) font sizes are: \vpt (5pt), \vipt (6pt),
  22. %                  \viipt (etc.), \viiipt, \ixpt, \xpt, \xipt, \xiipt,
  23. %                  \xivpt, \xviipt, \xxpt, \xxvpt.
  24. %  \@FONTSIZE    = The same as the font-size command except with an
  25. %                  '@' in front---e.g., if \FONTSIZE = \xivpt then
  26. %                  \@FONTSIZE = \@xivpt.
  27. %
  28. % For reasons of efficiency that needn't concern the designer,
  29. % the document style defines \@normalsize instead of \normalsize .  This is
  30. % done only for \normalsize, not for any other size-changing commands.
  31.  
  32. \def\@normalsize{\@setsize\normalsize{14.5pt}\xiipt\@xiipt
  33. \abovedisplayskip 12pt plus3pt minus7pt%
  34. \belowdisplayskip \abovedisplayskip
  35. \abovedisplayshortskip  \z@ plus3pt%   
  36. \belowdisplayshortskip  6.5pt plus3.5pt minus3pt%
  37. \let\@listi\@listI}   % Setting of \@listi added 9 Jun 87
  38.  
  39.  
  40. \def\small{\@setsize\small{13.6pt}\xipt\@xipt
  41. \abovedisplayskip 11pt plus3pt minus6pt%
  42. \belowdisplayskip \abovedisplayskip
  43. \abovedisplayshortskip  \z@ plus3pt%   
  44. \belowdisplayshortskip  6.5pt plus3.5pt minus3pt
  45. \def\@listi{\parsep 4.5pt plus 2pt minus 1pt
  46.             \itemsep \parsep
  47.             \topsep 9pt plus 3pt minus 5pt}}
  48.  
  49. \def\footnotesize{\@setsize\footnotesize{12pt}\xpt\@xpt
  50. \abovedisplayskip 10pt plus2pt minus5pt%
  51. \belowdisplayskip \abovedisplayskip
  52. \abovedisplayshortskip  \z@ plus3pt%   
  53. \belowdisplayshortskip  6pt plus3pt minus3pt
  54. \def\@listi{\topsep 6pt plus 2pt minus 2pt\parsep 3pt plus 2pt minus 1pt
  55. \itemsep \parsep}}
  56.  
  57. \def\scriptsize{\@setsize\scriptsize{9.5pt}\viiipt\@viiipt}
  58. \def\tiny{\@setsize\tiny{7pt}\vipt\@vipt}
  59. \def\large{\@setsize\large{18pt}\xivpt\@xivpt}
  60. \def\Large{\@setsize\Large{22pt}\xviipt\@xviipt}
  61. \def\LARGE{\@setsize\LARGE{25pt}\xxpt\@xxpt}
  62. \def\huge{\@setsize\huge{30pt}\xxvpt\@xxvpt}
  63. \let\Huge=\huge
  64.  
  65. \normalsize  % Choose the normalsize font.
  66.  
  67.  
  68. %  ****************************************
  69. %  *            PAGE LAYOUT               *
  70. %  ****************************************
  71. %
  72. % All margin dimensions measured from a point one inch from top and side
  73. % of page.  
  74.  
  75. % SIDE MARGINS:
  76. \if@twoside                 % Values for two-sided printing:
  77.    \oddsidemargin 21pt      %   Left margin on odd-numbered pages.
  78.    \evensidemargin 59pt     %   Left margin on even-numbered pages.
  79.    \marginparwidth 85pt    %   Width of marginal notes.
  80. \else                       % Values for one-sided printing:
  81.    \oddsidemargin 39.5pt      %   Note that \oddsidemargin = \evensidemargin
  82.    \evensidemargin 39.5pt
  83.    \marginparwidth 68pt 
  84. \fi
  85. \marginparsep 10pt          % Horizontal space between outer margin and 
  86.                             % marginal note
  87.  
  88.  
  89. % VERTICAL SPACING:        
  90.                          % Top of page:
  91. \topmargin 27pt          %    Nominal distance from top of page to top of
  92.                          %    box containing running head.
  93. \headheight 12pt         %    Height of box containing running head.
  94. \headsep 25pt            %    Space between running head and text.
  95. % \topskip = 10pt        %    '\baselineskip' for first line of page.
  96.                          % Bottom of page:
  97. \footskip 30pt           %    Distance from baseline of box containing foot 
  98.                          %    to baseline of last line of text.
  99.  
  100.  
  101. % DIMENSION OF TEXT:
  102. % 24 Jun 86: changed to explicitly compute \textheight to avoid roundoff.
  103. % The value of the multiplier was calculated as the floor of the
  104. % old \textheight minus \topskip, divided by \baselineskip for \normalsize.
  105. % The old value of \textheight was 536.5pt.
  106. % \textheight is the height of text (including footnotes and figures, 
  107. % excluding running head and foot).
  108.  
  109. \textheight = 36\baselineskip
  110. \advance\textheight by \topskip
  111. \textwidth 390pt         % Width of text line.
  112.                          % For two-column mode: 
  113. \columnsep 10pt          %    Space between columns 
  114. \columnseprule 0pt       %    Width of rule between columns.
  115.  
  116. % A \raggedbottom command causes 'ragged bottom' pages: pages set to
  117. % natural height instead of being stretched to exactly \textheight.
  118.  
  119. % FOOTNOTES:
  120.  
  121. \footnotesep 8.4pt    % Height of strut placed at the beginning of every
  122.                       % footnote = height of normal \footnotesize strut,
  123.                       % so no extra space between footnotes.
  124.  
  125. \skip\footins 10.8pt plus 4pt minus 2pt  % Space between last line of text and 
  126.                                          % top of first footnote.
  127.  
  128. % FLOATS: (a float is something like a figure or table)
  129. %
  130. %  FOR FLOATS ON A TEXT PAGE:
  131. %
  132. %    ONE-COLUMN MODE OR SINGLE-COLUMN FLOATS IN TWO-COLUMN MODE:
  133. \floatsep 14pt plus 2pt minus 4pt        % Space between adjacent floats moved
  134.                                          % to top or bottom of text page.
  135. \textfloatsep 20pt plus 2pt minus 4pt    % Space between main text and floats
  136.                                          % at top or bottom of page.
  137. \intextsep 14pt plus 4pt minus 4pt       % Space between in-text figures and 
  138.                                          % text.
  139. \@maxsep 20pt                            % The maximum of \floatsep, 
  140.                                          % \textfloatsep and \intextsep (minus
  141.                                          % the stretch and shrink).
  142. %    TWO-COLUMN FLOATS IN TWO-COLUMN MODE:
  143. \dblfloatsep 14pt plus 2pt minus 4pt     % Same as \floatsep for double-column
  144.                                          % figures in two-column mode.
  145. \dbltextfloatsep 20pt plus 2pt minus 4pt % \textfloatsep for double-column 
  146.                                          % floats.
  147. \@dblmaxsep 20pt                         % The maximum of \dblfloatsep and 
  148.                                          % \dbltexfloatsep.
  149.  
  150. %  FOR FLOATS ON A SEPARATE FLOAT PAGE OR COLUMN:
  151. %    ONE-COLUMN MODE OR SINGLE-COLUMN FLOATS IN TWO-COLUMN MODE:
  152. \@fptop 0pt plus 1fil    % Stretch at top of float page/column. (Must be    
  153.                          % 0pt plus ...)                                    
  154. \@fpsep 10pt plus 2fil    % Space between floats on float page/column.       
  155. \@fpbot 0pt plus 1fil    % Stretch at bottom of float page/column. (Must be 
  156.                          % 0pt plus ... )                                   
  157.  
  158. %   DOUBLE-COLUMN FLOATS IN TWO-COLUMN MODE.
  159. \@dblfptop 0pt plus 1fil % Stretch at top of float page. (Must be 0pt plus ...)
  160. \@dblfpsep 10pt plus 2fil % Space between floats on float page.
  161. \@dblfpbot 0pt plus 1fil % Stretch at bottom of float page. (Must be 
  162.                          % 0pt plus ... )                                   
  163. % MARGINAL NOTES:
  164. %
  165. \marginparpush 7pt       % Minimum vertical separation between two marginal 
  166.                          % notes.
  167.  
  168.  
  169. %  ****************************************
  170. %  *           PARAGRAPHING               *
  171. %  ****************************************
  172. %
  173. \parskip 0pt plus 1pt              % Extra vertical space between paragraphs.
  174. \parindent 1.5em                   % Width of paragraph indentation.
  175. %\topsep 10pt plus 4pt minus 6pt   % Extra vertical space, in addition to 
  176.                                    % \parskip, added above and below list and
  177.                                    % paragraphing environments.
  178. \partopsep 3pt plus 2pt minus 2pt  % Extra vertical space, in addition to 
  179.                                    % \parskip and \topsep, added when user
  180.                                    % leaves blank line before environment.
  181. %\itemsep 5pt plus 2.5pt minus 1pt % Extra vertical space, in addition to
  182.                                    % \parskip, added between list items.
  183. % See \@listI for values of \topsep and \itemsep
  184. % (Change made 9 Jun 87)
  185.  
  186. % The following page-breaking penalties are defined
  187.  
  188. \@lowpenalty   51      % Produced by \nopagebreak[1] or \nolinebreak[1]
  189. \@medpenalty  151      % Produced by \nopagebreak[2] or \nolinebreak[2]
  190. \@highpenalty 301      % Produced by \nopagebreak[3] or \nolinebreak[3]
  191.  
  192. \@beginparpenalty -\@lowpenalty    % Before a list or paragraph environment.
  193. \@endparpenalty   -\@lowpenalty    % After a list or paragraph environment.
  194. \@itempenalty     -\@lowpenalty    % Between list items.
  195.  
  196. % \clubpenalty         % 'Club line'  at bottom of page.
  197. % \widowpenalty        % 'Widow line' at top of page.
  198. % \displaywidowpenalty % Math display widow line.
  199. % \predisplaypenalty   % Breaking before a math display.
  200. % \postdisplaypenalty  % Breaking after a math display.
  201. % \interlinepenalty    % Breaking at a line within a paragraph.
  202. % \brokenpenalty       % Breaking after a hyphenated line.
  203.  
  204.  
  205. %    ****************************************
  206. %    *             SECTIONS                 *
  207. %    ****************************************
  208. %
  209.  
  210. % \secdef{UNSTARCMDS}{STARCMDS} :
  211. %    When defining a sectionioning command without using
  212. %    \@startsection, you can use \secdef as follows:
  213. %       \def\part { ... \secdef \CMDA \CMDB }
  214. %       \def\CMDA  [#1]#2{ ... }     % Command to define \part[...]{...}
  215. %       \def\CMDB  #1{ ... }         % Command to define \part*{...}
  216.  
  217. \def\part{\par               % New paragraph
  218.    \addvspace{4ex}           % Adds vertical space above title.
  219.    \@afterindentfalse        % Suppresses indent in first paragraph.  Change
  220.    \secdef\@part\@spart}     % to \@afterindenttrue to have indent.
  221.  
  222. \def\@part[#1]#2{\ifnum \c@secnumdepth >\m@ne    % IF secnumdepth > -1
  223.         \refstepcounter{part}                    %  THEN step part counter
  224.         \addcontentsline{toc}{part}{\thepart     %       add toc line
  225.         \hspace{1em}#1}\else                     %  ELSE add unnumbered line
  226.       \addcontentsline{toc}{part}{#1}\fi         % FI
  227.    { \parindent 0pt \raggedright 
  228.     \ifnum \c@secnumdepth >\m@ne   % IF secnumdepth > -1 
  229.       \Large \bf Part \thepart     %   THEN Print 'Part' and 
  230.       \par\nobreak                 %          number in \Large boldface.
  231.     \fi                            % FI
  232.     \huge \bf                      % Select \huge boldface.
  233.     #2\markboth{}{}\par }          % Print title and set heading marks null.
  234.     \nobreak                       % TeX penalty to prevent page break.
  235.     \vskip 3ex                     % Space between title and text.
  236.    \@afterheading                  % Routine called after part and
  237.     }                              %     section heading.
  238.  
  239. % Heading for \part* command
  240. \def\@spart#1{{\parindent 0pt \raggedright 
  241.     \huge \bf                       
  242.     #1\par}                         % Title.
  243.     \nobreak                        % TeX penalty to prevent page break.
  244.     \vskip 3ex                      % Space between title and text.
  245.     \@afterheading                  % Routine called after part and
  246.   }                                 %     section heading.
  247.  
  248. % \@startsection {NAME}{LEVEL}{INDENT}{BEFORESKIP}{AFTERSKIP}{STYLE} 
  249. %            optional * [ALTHEADING]{HEADING}
  250. %    Generic command to start a section.  
  251. %    NAME       : e.g., 'subsection'
  252. %    LEVEL      : a number, denoting depth of section -- e.g., section=1,
  253. %                 subsection = 2, etc.  A section number will be printed if
  254. %                 and only if LEVEL < or = the value of the secnumdepth
  255. %                 counter.
  256. %    INDENT     : Indentation of heading from left margin
  257. %    BEFORESKIP : Absolute value = skip to leave above the heading.  
  258. %                 If negative, then paragraph indent of text following 
  259. %                 heading is suppressed.
  260. %    AFTERSKIP  : if positive, then skip to leave below heading,
  261. %                       else - skip to leave to right of run-in heading.
  262. %    STYLE      : commands to set style
  263. %  If '*' missing, then increments the counter.  If it is present, then
  264. %  there should be no [ALTHEADING] argument.  A sectioning command
  265. %  is normally defined to \@startsection + its first six arguments.
  266.  
  267. \def\section{\@startsection {section}{1}{\z@}{-3.5ex plus -1ex minus 
  268.     -.2ex}{2.3ex plus .2ex}{\Large\bf}}
  269. \def\subsection{\@startsection{subsection}{2}{\z@}{-3.25ex plus -1ex minus 
  270.    -.2ex}{1.5ex plus .2ex}{\large\bf}}
  271. \def\subsubsection{\@startsection{subsubsection}{3}{\z@}{-3.25ex plus
  272.  -1ex minus -.2ex}{1.5ex plus .2ex}{\normalsize\bf}}
  273. \def\paragraph{\@startsection
  274.      {paragraph}{4}{\z@}{3.25ex plus 1ex minus .2ex}{-1em}{\normalsize\bf}}
  275. \def\subparagraph{\@startsection
  276.      {subparagraph}{4}{\parindent}{3.25ex plus 1ex minus 
  277.      .2ex}{-1em}{\normalsize\bf}}
  278.  
  279.  
  280. % Default initializations of \...mark commands.  (See below for their
  281. % us in defining page styles.
  282. %
  283.  
  284. % \def\sectionmark#1{}           % Preloaded definitions
  285. % \def\subsectionmark#1{}
  286. % \def\subsubsectionmark#1{}
  287. % \def\paragraphmark#1{}
  288. % \def\subparagraphmark#1{}
  289.  
  290. % The value of the counter secnumdepth gives the depth of the
  291. % highest-level sectioning command that is to produce section numbers.
  292. %
  293.  
  294. \setcounter{secnumdepth}{3}
  295.  
  296. % APPENDIX
  297. %
  298. % The \appendix command must do the following:
  299. %    -- reset the section and subsection counters to zero
  300. %    -- redefine the section counter to produce appendix numbers
  301. %    -- redefine the \section command if appendix titles and headings are
  302. %       to look different from section titles and headings.
  303.  
  304. \def\appendix{\par
  305.   \setcounter{section}{0}
  306.   \setcounter{subsection}{0}
  307.   \def\thesection{\Alph{section}}}
  308.  
  309.  
  310. %    ****************************************
  311. %    *                LISTS                 *
  312. %    ****************************************
  313. %
  314.  
  315. % The following commands are used to set the default values for the list
  316. % environment's parameters. See the LaTeX manual for an explanation of
  317. % the meanings of the parameters.  Defaults for the list environment are
  318. % set as follows.  First, \rightmargin, \listparindent and \itemindent
  319. % are set to 0pt.  Then, for a Kth level list, the command \@listK is
  320. % called, where 'K' denotes 'i', 'ii', ... , 'vi'.  (I.e., \@listiii is
  321. % called for a third-level list.)  By convention, \@listK should set
  322. % \leftmargin to \leftmarginK.
  323. %
  324. % For efficiency, level-one list's values are defined at top level, and
  325. % \@listi is defined to set only \leftmargin.
  326.  
  327. \leftmargini 2.5em
  328. \leftmarginii 2.2em     % > \labelsep + width of '(m)'
  329. \leftmarginiii 1.87em   % > \labelsep + width of 'vii.'
  330. \leftmarginiv 1.7em     % > \labelsep + width of 'M.'
  331. \leftmarginv 1em
  332. \leftmarginvi 1em
  333.  
  334. \leftmargin\leftmargini
  335. \labelsep .5em
  336. \labelwidth\leftmargini\advance\labelwidth-\labelsep
  337. %\parsep 5pt plus 2.5pt minus 1pt   %(Removed 9 Jun 87)
  338.  
  339. % \@listI defines top level and \@listi values of
  340. % \leftmargin, \topsep, \parsep, and \itemsep
  341. % (Added 9 Jun 87)
  342. \def\@listI{\leftmargin\leftmargini \parsep 5pt plus 2.5pt minus 1pt%
  343. \topsep 10pt plus 4pt minus 6pt%
  344. \itemsep 5pt plus 2.5pt minus 1pt}
  345.  
  346. \let\@listi\@listI
  347. \@listi 
  348.  
  349. \def\@listii{\leftmargin\leftmarginii
  350.    \labelwidth\leftmarginii\advance\labelwidth-\labelsep
  351.    \topsep 5pt plus 2.5pt minus 1pt
  352.    \parsep 2.5pt plus 1pt minus 1pt
  353.    \itemsep \parsep}
  354.  
  355. \def\@listiii{\leftmargin\leftmarginiii
  356.     \labelwidth\leftmarginiii\advance\labelwidth-\labelsep
  357.     \topsep 2.5pt plus 1pt minus 1pt 
  358.     \parsep \z@ \partopsep 1pt plus 0pt minus 1pt
  359.     \itemsep \topsep}
  360.  
  361. \def\@listiv{\leftmargin\leftmarginiv
  362.      \labelwidth\leftmarginiv\advance\labelwidth-\labelsep}
  363.  
  364. \def\@listv{\leftmargin\leftmarginv
  365.      \labelwidth\leftmarginv\advance\labelwidth-\labelsep}
  366.  
  367. \def\@listvi{\leftmargin\leftmarginvi
  368.      \labelwidth\leftmarginvi\advance\labelwidth-\labelsep}
  369.  
  370.